<template>
	<view>
		<view class="tabTitleBox">
			<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" active-color="#2674FF" inactive-color="#999"></u-tabs>
		</view>
		<view class="postList">
			<view class="title">
				<text class="subtitle">常规</text>
				<text class="maintitle">【教务处】思想动态观察岗</text>
			</view>
			<view class="info">
				<view class="infoList" style="margin-top: 22rpx;">
					<image src="../../static/images/calendar.png" alt="" class="calendarImg" />
					<text class="infoDetail">2021.09.10-至今</text>
				</view>
				<view class="infoList" style="margin-top: 8rpx;">
					<image src="../../static/images/address.png" alt="" class="addressImg" />
					<text class="infoDetail">教师发展中心301</text>
				</view>
		
			</view>
		</view>
		
		<view class="postList">
			<view class="title">
				<text class="subtitle" style="background-color: #58D79F;">临时</text>
				<text class="maintitle">【教务处】思想动态观察岗</text>
			</view>
			<view class="info">
				<view class="infoList" style="margin-top: 22rpx;">
					<image src="../../static/images/calendar.png" alt="" class="calendarImg" />
					<text class="infoDetail">2021.09.10-至今</text>
				</view>
				<view class="infoList" style="margin-top: 8rpx;">
					<image src="../../static/images/address.png" alt="" class="addressImg" />
					<text class="infoDetail">教师发展中心301</text>
				</view>
			</view>
			<u-button type="primary" class="applyAgain">再次申请</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{name: '在职岗位'}, 
					{name: '历史岗位'},
				],
				current: 0,
			}
		},
		methods: {
			change(item) {
				this.current = item.index;
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background: #FAFAFA;
	}
	/deep/.u-tabs__wrapper__nav__item{
		width: 50%;
	}

	.tabTitleBox{
		width: 750rpx;
		background-color: #ffffff;
		margin: 0;
	}
	.postList {
		display: flex;
		flex-direction: column;
		font-size: 16px;
		flex-shrink: 0;
		white-space: nowrap;
		margin: 32rpx 32rpx 12rpx 32rpx;
		background-color: #fff;
		padding: 22rpx 32rpx 22rpx 32rpx;
		border-radius: 16rpx;
		position: relative;
		.applyAgain{
			position: absolute;
			right: 32rpx;
			bottom: 24rpx;
			width: 152rpx;
			height: 56rpx;
			background: #2674FF;
			border-radius: 28rpx;
		}
		.title {
			.subtitle {
				font-size: 20rpx;
				color: #FFFFFF;
				border-radius: 16rpx 0px 16rpx 0px;
				background: #EF6850;
				padding: 2rpx 8rpx;
			}
	
			.maintitle {
				font-weight: 500;
				font-size: 30rpx;
				color: #333333;
	
			}
		}
	
		.info {
			.infoList {
				.calendarImg {
					width: 24rpx;
					height: 24rpx;
					vertical-align: middle;
				}
	
				.addressImg {
					width: 26rpx;
					height: 30rpx;
					vertical-align: middle;
				}
	
				.infoDetail {
					margin-left: 14rpx;
					font-size: 24rpx;
					color: #333;
				}
			}
		}
	}
</style>
